﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Trabajador
{
    public partial class Contratos : Form
    {
        public Contratos()
        {
            InitializeComponent();
        }

        private void deleteContrato_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Are you sure you want to delete this item?", "Confirm delete", MessageBoxButtons.YesNo) == DialogResult.Yes)
            { // a 'DialogResult.Yes' value was returned from the MessageBox // proceed with your deletion +
                MessageBox.Show("Contrato Eliminado");
                this.Close();
            }
        }

        private void regContrato_Click(object sender, EventArgs e)
        {
            ContratoForm ctf = new ContratoForm();
            ctf.MdiParent = this.ParentForm;
            ctf.Show();
        }

        private void updateContrato_Click(object sender, EventArgs e)
        {
            ContratoForm ctf = new ContratoForm();
            ctf.MdiParent = this.ParentForm;
            ctf.Show();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Busqueda aux = new Busqueda();
            aux.Show();
        }
    }
}
